package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.dto.Paged;
import com.molichuxing.services.infrastructure.dto.request.create.MaintenanceConfigCreateDto;
import com.molichuxing.services.infrastructure.dto.request.modify.MaintenanceConfigModifyDto;
import com.molichuxing.services.infrastructure.dto.response.MaintenanceConfigDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 保养配置表 服务类
 * </p>
 *
 * @author xuelin yi
 * @since 2019-09-23
 */
public interface MaintenanceConfigService {

    /**
     * 根据车型id查询保养配置
     *
     * @param vehicleId
     * @return
     */
    public MaintenanceConfigDto getMaintenanceConfigByVehicleId(Integer vehicleId);

    /**
     * 分页
     *
     * @param map
     * @param pageNum
     * @param pageSize
     * @return
     */
    Paged<MaintenanceConfigDto> getMaintenanceConfigPage(Map<String, Object> map, Integer pageNum, Integer pageSize);

    /**
     * 根据id查询保养配置
     *
     * @param id
     * @return
     */
    public MaintenanceConfigDto getMaintenanceConfigById(Integer id);

    /**
     * 添加
     *
     * @param dto
     * @return
     */
    public Integer createMaintenanceConfig(MaintenanceConfigCreateDto dto);

    /**
     * 修改
     *
     * @param dto
     * @return
     */
    public Boolean modifyMaintenanceConfig(MaintenanceConfigModifyDto dto);

    /**
     * 获取车型id
     * 
     * @return
     */
    public List<Integer> getVehicleIdList();
}
